package com.demo.demo3;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * Spring 声明式事务管理（基于 Aspectj 的 xml 方式）转账案例测试类
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext3.xml")
public class testDemo3 {
    @Resource(name = "accountService")
    private AccountService accountService;
    @Test
    public void demo3 () {
        accountService.transfer("aaa", "bbb", 200d);
    }
}
